package com.wzw.aspect;



import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;


public class XmlAspect implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        before();
        Object obj = methodInvocation.proceed();
        after();
        return obj;
    }

    public void before(){
        System.out.println("环绕消息(提醒) : 前面");
    }
    public void after(){
        System.out.println("环绕消息(提醒) : 后面");
    }
}
